package com.shijichaoxing.dao;

import com.shijichaoxing.entity.Candidate;

import java.util.List;

/**
 * @author zj
 */

public interface CandidateDao {

    boolean addCandidate(Candidate candidate);

    boolean updateCandidate(Candidate candidate);

    Candidate findCandidateById(Integer id);

    List<Candidate> findCandidateByPage(int start, int limit, String indexName, boolean isAsc);

    int countAll();

    boolean deleteById(Integer id);

}
